package com.poet.df.xml.cm;

import java.util.Map;
import java.util.Properties;

import org.springframework.stereotype.Component;

import com.poet.df.dbinfo.pojo.Column;

public class ColumnMappings {

	private Properties properties = null;
	
	public void setMappings(Properties columnMappings){
		this.properties = columnMappings;
	}
	
	public String getLabel(String key,String remarks){
		String label = properties.getProperty(key);
		if(label != null)
			return label;
		if(remarks != null && !remarks.isEmpty() )
			return remarks;
		return key;
	}
	
}
